package com.yyfax.pay.vo.depository;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

/**
 * @author yejc
 * @date 2017-09-08
 * @since v1.0.0
 */
public class QueryTradeReq {
	/** 交易类型 */
	@NotNull(message = "type不能为空")
	private FuiouTradeTypeEnum type;
	/** 起始时间 */
	@NotBlank(message = "startTime不能为空")
	private String startDate;
	/** 截止时间 */
	@NotBlank(message = "endTime不能为空")
	private String endDate;

	private String orderId;
	private String accountNo;
	private String state;
	@Min(value = 1, message = "pageNo需大于1")
	private Integer pageNo;
	@Range(min = 10, max = 100, message = "pageSize需在10~100之间")
	private Integer pageSize;

	public FuiouTradeTypeEnum getType() {
		return type;
	}

	public void setType(FuiouTradeTypeEnum type) {
		this.type = type;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
}
